from django.conf import settings
from django.conf.urls.defaults import patterns, include

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^sitemap\.xml$', 'amscms.core.views.sitemap'),                   
    (r'^googledc0cc1a8645b8bf0.html$', 'amscms.core.views.google_verif'),                   
    # Core
    (r'^$', include('core.urls')),
    (r'^core/', include('core.urls')),
    (r'^openid/', include('socialauth.urls')),
    # Ads
    (r'^ads/', include('ams.urls')),
    (r'^my/', include('ams.urls')),
    # Feeds
    (r'^rss/', include('feeds.urls')),
    # Dict
    (r'^dict/', include('dict.urls')),
    # Payment
    (r'^pay/', include('payment.urls')),
    # Reports
    (r'^report/', include('reports.urls')),
    # FAQ
    (r'^faq/', include('faq.urls')),
    # Admin
    (r'^admin/', include(admin.site.urls)),
    # Private Messages
    (r'^pm/', include('private_messages.urls')),
    # User Settings
    (r'^settings/', include('user_settings.urls')),
    # About
    (r'^about/', include('about.urls')),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        # Static Resources
        (r'^static/(?P<path>.*)$', 'django.views.static.serve',
            {'document_root': settings.MEDIA_ROOT})
    )

